package com.evan.designpatterns.prototype.simple;

/**
 * @author :liujiapeng01
 * @date :2019-03-14 12:55
 **/
public class ConcretePrototypeB implements Prototype {


    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public Prototype createClone() {
        try {
            return (Prototype) clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
